<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
		<link href="template/css/Site_inscription.css" type="text/css" rel="stylesheet"/>
		<title>Site_accueil</title>
	</head>
	
	<body>
		<?php
			include('header.html');
		?>
		<section id="content">
			<ul class="menu">
				<li><a href="create_bien.php">Mettre un nouveau bien en location</a></li>
				<li><a href="update_profil.php">Mettre à jours son profil</a></li>
				<?php if($biens > 0) { ?><li><a href="manage_bien.php">G&eacute;rer vos biens</a></li><?php } ?>
			</ul><br/>
			<article id="historique">
				<table>
					<tr>
						<td width="300px;">Adresse</td>
						<td width="100px;">Pays</td>
						<td width="200px;">D&eacute;but location</td>
						<td width="200px;">Fin location</td>
					</tr>
					<?php
						while($location = $locations->fetch_object()) {
					?>
					<tr>
						<td><?php echo $location->adresse; ?></td>
						<td><?php echo $location->pays; ?></td>
						<td><?php echo $location->debut_location; ?></td>
						<td><?php echo $location->fin_location; ?></td>
					</tr>
					<?php
						}
					?>
					<?php
						while($archive = $archives->fetch_object()) {
					?>
					<tr>
						<td><?php echo $archive->adresse; ?></td>
						<td><?php echo $archive->pays; ?></td>
						<td><?php echo $archive->debut_location; ?></td>
						<td><?php echo $archive->fin_location; ?></td>
					</tr>
					<?php
						}
					?>
				</table>
			</article>
		</section><br/>
		<?php
			include('footer.html');
		?>
	</body>
</html>